package com.xiangxiangjd.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 肖守凯
 * @since 2021-05-10
 */
@TableName("answer_user")
@ApiModel(value="AnswerUser对象", description="")
public class AnswerUser extends Model<AnswerUser> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户回答的id")
    @TableId("id")
    private String id;

    @ApiModelProperty(value = "用户的ip地址")
    @TableField("ip")
    private String ip;

    @ApiModelProperty(value = "设备编码")
    @TableField("equipment_code")
    private String equipmentCode;

    @ApiModelProperty(value = "答案的id")
    @TableField("answer_id")
    private String answerId;

    @ApiModelProperty(value = "用户的答案")
    @TableField("user_answer")
    private String userAnswer;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private String createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private String updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
    public String getEquipmentCode() {
        return equipmentCode;
    }

    public void setEquipmentCode(String equipmentCode) {
        this.equipmentCode = equipmentCode;
    }
    public String getAnswerId() {
        return answerId;
    }

    public void setAnswerId(String answerId) {
        this.answerId = answerId;
    }
    public String getUserAnswer() {
        return userAnswer;
    }

    public void setUserAnswer(String userAnswer) {
        this.userAnswer = userAnswer;
    }
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AnswerUser{" +
            "id=" + id +
            ", ip=" + ip +
            ", equipmentCode=" + equipmentCode +
            ", answerId=" + answerId +
            ", userAnswer=" + userAnswer +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        "}";
    }
}
